<template>
  <div class="container">
    <div class="container-title">
      <div>今日院校</div>
      <div class="more">查看更多></div>
    </div>
    <div class="nav">
      <div class="cell" v-for="item in universityList" @click="toLink(item.id)" @toLink="toLink(item.id)">
        <img src="/images/universityLogo.png">
        <div class="name">{{ item.name }}</div>
        <div class="tag">
          <span>高职高专 </span> | <span> 北京</span> | <span>综合</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { universityList } from '@/components/universityList/data'
import { useRouter } from 'vue-router';
const router = useRouter()

function toLink(id: number) {
  window.location.href = `/universityDetail/${id}`
}

</script>

<style lang="less" scoped>
@import "./index.less";
</style>
